using System.Web;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Framework.Config;
using GettingStartedSample.Models;
using Sport.Site.Models;

namespace GettingStartedSample
{
    public class GlobalApplication : HttpApplication
    {
        public void Application_OnStart()
        {
            ActiveRecordStarter.Initialize(ActiveRecordSectionHandler.Instance,
                                           new[] { 
                                               typeof(Venue), 
                                               typeof(Player), 
                                               typeof(Meeting), 
                                               typeof(Activity)
                                           });

            // If you want to let ActiveRecord create the schema for you:
            //ActiveRecordStarter.CreateSchema();
        }

        public void Application_OnEnd()
        {
        }
    }
}